<template>
	<view class="exam-top">
		<image src="../../static/logo.png" mode="widthFix"></image>
		<text>摩托车科目四模拟考试</text>
	</view>
	<view class="Instructions">
		<text>考试类型：摩托车D/E/F</text>
		<text>考试时间：45分钟</text>
		<text>合格标准：90分及格(满分100分)</text>
		<text>出题规则：随机抽取题目</text>
		<text>计分规则：考试过程中不能修改答案，每错一题扣两分，错题累计超过6题，考试不通过</text>
		<button type="primary" @click="startExam">开始考试</button>
	</view>
</template>

<script setup>
	function startExam(){
		/*uni.navigateTo({
		        url: '/pages/exam-page/index',
		        success: function (res) {
		            console.log('跳转成功');
		        },
		        fail: function (err) {
		            console.log('跳转失败');
		        }
		    });*/
		//另一种写法
		wx.navigateTo({
			url:"/pages/exam-page/index"
		})
	}
</script>

<style>
	page{
			background-color: #f7f7f7;
		}
		.exam-top{
			display: flex;
			flex-direction: column;
			align-items: center;
			font-weight: bold;
			font-size: 35rpx;
			margin-top: 300rpx;
		}
		.exam-top image{
			width: 100rpx;
			display: block;
			margin-bottom: 20rpx;
		}
		.Instructions{
			display: flex;
			flex-direction: column;
			line-height:2;
			padding: 0 80rpx;
			margin-top: 70rpx;
		}
		.Instructions button{
			width: 100%;
			margin-top: 50rpx;
		}
</style>
